import http from "@/utils/http";
// 工单Sku
export function workOrder_workSku(whid, params) {
  return http.get("/by-behalf-stock/workSku/" + whid + "/" + params);
}
//新建工单
export function workOrder_addWorkSku(params) {
  return http.post("/by-work-order", params);
}
//新建工单
export function workOrder_editWorkSku(params) {
  return http.put("/by-work-order", params);
}
//工单列表
export function workOrder_page(params) {
  return http.post("/by-work-order/pageWork", params);
}
//工单气泡
export function workOrder_workCount() {
  return http.get("/by-work-order/workCount");
}
//工单气泡
export function workOrder_workInfo(params) {
  return http.get("/by-work-order/" + params);
}
//发送留言
export function workOrder_workMessage(params) {
  return http.post("/by-work-message", params);
}
//查询留言
export function workOrder_infoMessage(params) {
  return http.get("/by-work-message/" + params);
}
//提交到仓库处理
export function workOrder_updateState(url) {
  return http.put("/by-work-order/updateState/" + url);
}
//提交到仓库处理
export function workOrder_updateConfirm(url) {
  return http.put("/by-work-order/updateConfirm/" + url);
}
//客服再次确认到财务
export function workOrder_updateFinancial(url) {
  return http.put("/by-work-order/updateFinancial/" + url);
}
//财务结算到已完成
export function workOrder_financiaLcomplete(url) {
  return http.put("/by-work-order/financiaLcomplete/" + url);
}
//服务项登记搜索框查询
export function ser_service(params) {
  return http.get("/incoming-Order/cost-work/" + params);
}
